<ui:composition template="/site/private/template/template.xhtml" xmlns="http://www.w3.org/1999/xhtml"
			    xmlns:h="http://java.sun.com/jsf/html"
			    xmlns:f="http://java.sun.com/jsf/core"
			    xmlns:ui="http://java.sun.com/jsf/facelets"
			    xmlns:rich="http://richfaces.org/rich"
			    xmlns:t="http://myfaces.apache.org/tomahawk">
	
		<ui:define name="conteudo">
		
			<h:form id="form">
			
			<br/>
	
			<div align="center">
				<span><h:outputText value="#{mensagem['noticia.titulo']}" /></span>
			</div>
			
			<br/>
		
			<h:panelGrid columns="2">
			
				<h:outputLabel value="${mensagem['noticia.titulo.campo']}" />
				<h:inputText value="${noticiaEditMB.view.entidade.titulo}" disabled="#{noticiaEditMB.blocked}" />
				                
				<h:outputLabel value="${mensagem['noticia.fonte']}" />
				<h:inputText value="${noticiaEditMB.view.entidade.fonte}" disabled="#{noticiaEditMB.blocked}" />
				
				<h:outputLabel value="${mensagem['noticia.dataexibicao']}" />
				<rich:calendar value="#{noticiaEditMB.view.entidade.dataExibicao}" datePattern="dd/MM/yyyy" 
						cellWidth="24px" cellHeight="22px" style="width:200px" disabled="#{noticiaEditMB.blocked}" >
                </rich:calendar>
				
				<h:outputLabel value="${mensagem['noticia.ativo']}" />
				<h:selectBooleanCheckbox value="#{noticiaEditMB.view.entidade.ativo}" disabled="#{noticiaEditMB.blocked}" />
						
			</h:panelGrid>
			
			<h:panelGrid columns="1">
				<h:outputLabel value="${mensagem['noticia.descricao']}" />
			</h:panelGrid>
			
			<rich:editor id="editor" value="#{noticiaEditMB.view.entidade.descricao}" rendered="#{!noticiaEditMB.blocked}"></rich:editor>
			<t:div style="width: 90%; border: 1px solid green;" rendered="#{noticiaEditMB.blocked}" >
				<h:outputText value="#{noticiaEditMB.view.entidade.descricao}" escape="false"/>
			</t:div>
			
			<br/>
			
			<h:panelGrid columns="4">
				<h:commandButton action="#{noticiaEditMB.salvar}" value="${mensagem.salvar}" rendered="#{noticiaEditMB.insertMode or noticiaEditMB.editMode}" />
				<h:commandButton action="#{noticiaEditMB.excluir}" value="${mensagem.excluir}" rendered="#{noticiaEditMB.excludMode}" />
				<h:commandButton action="#{noticiaListMB.preConsultar}" value="${mensagem.voltar}" />
			</h:panelGrid>
			
			</h:form>
		
		</ui:define>
	
</ui:composition>